package cn.lg.soar.mvc.handler;

import cn.lg.soar.core.annotations.ApiClient;
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;

/**
 * 忽略client包下的Controller映射
 * @author luguoxiang
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
public class IgnoreApiClientRequestMappingHandlerMapping extends RequestMappingHandlerMapping {

    @Override
    protected boolean isHandler(Class<?> beanType) {
        return !beanType.isAnnotationPresent(ApiClient.class) && super.isHandler(beanType);
    }

}
